feat: Require Go 1.26 and use new(expr) for pointer literals - #4481
feat: Require Go 1.26 and use new(expr) for pointer literals#4481ajayk wants to merge 7 commits into
Conversation
Bump go.mod to 1.26 per the N-1 support policy (Go 1.27 is current) and replace Ptr() with the new(v) builtin across tests.
|
@ajayk - please read step 4 of CONTRIBUTING.md and run the scripts locally to fix all test and linter errors, then push the changes to this PR before we can proceed. |
Bump go.mod to 1.26 per the N-1 support policy (Go 1.27 is current) and replace Ptr() with the new(v) builtin across tests.
addressed them sorry about this ! |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #4481 +/- ##
==========================================
- Coverage 98.53% 98.52% -0.01%
==========================================
Files 195 195
Lines 17691 17685 -6
==========================================
- Hits 17431 17424 -7
- Misses 260 261 +1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
I'm surprised the the Codecov report actually dropped in with this PR, but the bulk of the changes are for deprecated functions that are fixed with |
alexandear
left a comment
There was a problem hiding this comment.
Please update all occurrences of Ptr with new:
❯ rg "Ptr\(" -c
CONTRIBUTING.md:4
tools/redundantptr/redundantptr.go:2
scrape/apps_test.go:2
tools/redundantptr/testdata/src/has-warnings/github.go:9
github/github-iterators.go:246
tools/redundantptr/testdata/src/no-warnings/github.go:9
README.md:2
github/github-stringify_test.go:976
github/gen-iterators.go:1
github/gen-stringify-test.go:11
github/github.go:2
github/github_test.go:4
github/doc.go:2
# Conflicts: # github/copilot_test.go
|
|
Thank you, @Not-Dhananjay-Mishra! |
|
Closing and reopening to kick GitHub. |
# Conflicts: # github/github-stringify_test.go # github/repos_keys_test.go # github/users_keys_test.go # github/users_ssh_signing_keys_test.go # test/integration/users_test.go
Bump go.mod to 1.26 per the N-1 support policy (Go 1.27 is current) and replace Ptr() with the new(v) builtin across tests.